<%-- 
    Document   : view.jsp
    Created on : 2011-12-2, 16:22:50
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" isELIgnored="false"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/swfobject/swfobject.js"></script> 
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.1.min.js"></script> 
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/flexpaper_flash.js"></script> 
        <script type="text/javascript">
            if(window.addEventListener)
                window.addEventListener('DOMMouseScroll', handleWheel, false);
            window.onmousewheel = document.onmousewheel = handleWheel;
			
            if (window.attachEvent) 
                window.attachEvent("onmousewheel", handleWheel);
			
            function handleWheel(event){
                try{
                    if(!window.document.FlexPaperViewer.hasFocus()){return true;}
                    window.document.FlexPaperViewer.setViewerFocus(true);
                    window.document.FlexPaperViewer.focus();
					
                    if(navigator.appName == "Netscape"){
                        if (event.detail)
                            delta = 0;
                        if (event.preventDefault){
                            event.preventDefault();
                            event.returnValue = false;
                        }
                    }
                    return false;	
                }catch(err){return true;}		
            }
        </script>


        <script type="text/javascript">
            //            swfobject.embedSWF("/doc/3.swf", "swfid", "300", "120", "9.0.0", "/js/swfobject/expressInstall.swf"); 
            
            
            var swfVersionStr = "9.0.124";
            var xiSwfUrlStr = "${pageContext.request.contextPath}/js/FlexPaperViewer.swf";
            var flashvars = { 
                SwfFile : escape("${pageContext.request.contextPath}/doc/aaa.swf"),
                Scale : 0.6, 
                ZoomTransition: "linear",  
                ZoomTime: "greater",  
                ZoomInterval: 0.1,  
                FitPageOnLoad: false,  
                FitWidthOnLoad: false,  
                PrintEnabled: true,  
                FullScreenAsMaxWindow: false,  
                ProgressiveLoading: false,  
       
                PrintToolsVisible: true,  
                ViewModeToolsVisible: true,  
                ZoomToolsVisible: true,  
                FullScreenVisible: true,  
                NavToolsVisible: true,  
                CursorToolsVisible: true,  
                SearchToolsVisible: false,  
                localeChain: "zh_CN"  
            };
            var params = {
					
            }
            params.quality = "high";  
            params.bgcolor = "#ffffff";  
            params.allowscriptaccess = "sameDomain";  
            params.allowfullscreen = "true";  
            var attributes = {};  
            attributes.id = "FlexPaperViewer";  
            attributes.name = "FlexPaperViewer";  
            swfobject.embedSWF(
            "${pageContext.request.contextPath}/js/FlexPaperViewer.swf", "swfid", 
            "600", "500", 
            swfVersionStr, xiSwfUrlStr, 
            flashvars, params, attributes);
            swfobject.createCSS("#swfid", "display:block;text-align:center;");
        </script>
    </head>
    <body>
        <div id="swfid"></div>
    </body>
</html>
